

const holidaywishes = {
  state: {
    editId: null, 
    decide: '', //判断模板调用时 add/edit
  },

  mutations: {
    SET_WELFARE_DECIDE: (state, decide) => {
        state.decide = decide
    },
    SET_EDIT_ID: (state, id) => {
        state.editId = id
    }
  },

  actions: {
    async SetWelfareDecide({ commit }, decide) {
        commit('SET_WELFARE_DECIDE', decide)
    },
    async SetEditId({ commit }, id) {
      commit('SET_EDIT_ID', id)
    }
  }
}

export default holidaywishes
